package sjtu.ist.warehouse4ws.service.cust;

import java.util.List;

import sjtu.ist.warehouse4ws.dao.cust.CustDomainModelDao;
import sjtu.ist.warehouse4ws.dao.DomainModelDao;
import sjtu.ist.warehouse4ws.model.CustDomainmodel;

public class CustDomainModelServiceImpl implements CustDomainModelService{
	
	private CustDomainModelDao custDomainModelDao;
	
	public void setCustDomainModelDao(CustDomainModelDao custDomainModelDao) {
		this.custDomainModelDao = custDomainModelDao;
	}

	@Override
	public CustDomainmodel getCustDomainModel(String id) {
		// TODO Auto-generated method stub
		return custDomainModelDao.getCustDomainModel(id);
	}

	@Override
	public List<CustDomainmodel> getCustDomainModelList() {
		// TODO Auto-generated method stub
		return (List<CustDomainmodel>)custDomainModelDao.findAllCustDomainModels();
	}
	

	@Override
	public void saveCustDomainModel(CustDomainmodel custDomainModel) {
		// TODO Auto-generated method stub
		custDomainModelDao.saveCustDomainModel(custDomainModel);
		System.out.print(1);
		
	}

//	@Override
//	public List<CustDomainmodel> getCustDomainModelListbyCompanyId(
//			String companyId) {
//		// TODO Auto-generated method stub
//		return (List<CustDomainmodel>)custDomainModelDao.findAllCustDomainModelsbyCompany(companyId);
//	}

	@Override
	public void createTable(String custName) {
		// TODO Auto-generated method stub
		custDomainModelDao.createTable(custName);
	}

}
